package goldeneagle.com.util;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class HibernateUtil {
	private static Configuration cfg;
	private static SessionFactory factory;
	private static Session session;
	static {
		cfg = new Configuration().configure();
		factory = cfg.buildSessionFactory();
	}
	public static Session getCurrentSession() {
		session = factory.getCurrentSession();
		return session;
	}

	public static void main(String[] args) {

	}

}
